package com.gohead.server.crawel.session;

import com.gohead.server.crawel.apis.ChromeSessionApi;
import com.gohead.server.crawel.apis.ProxyApi;
import com.gohead.server.crawel.defaults.DefaultProxyApi;
import com.gohead.server.crawel.models.WebFetched;

import javax.annotation.Nonnull;
import java.util.Optional;

public class ChromeSession implements ChromeSessionApi {

    @Nonnull
    private ProxyApi proxy = DefaultProxyApi.newIntance();


    public static ChromeSession newInstance() {
        return new ChromeSession();
    }

    @Override
    public ChromeSessionApi proxy(@Nonnull ProxyApi proxy) {
        this.proxy = proxy;
        return this;
    }

    @Override
    public Optional<WebFetched> load(String uri) {
        return Optional.empty();
    }


}
